<?php

namespace app\api\controller\logistics;

use app\common\controller\qyg\Api;

class Index extends Api
{
    public $noNeedLogin = ['*'];

    public function index(){

        echo 1;
    }

    public function with_cfg()
    {
        $cfg = config('site');
        $this->success("ok",["charge"=>$cfg["charge"],"max_num"=>$cfg["max_num"],"with_text"=>$cfg["with_text"]]);
    }

    public function get_bank_list()
    {
        $this->success("OK",[
            ['name'  =>'微信账户','type'=>'wechat'],
            ['name'  =>'支付宝账户','type'=>'alipay'],
            ['name'  =>'工商银行','type'=>'bank'],
            ['name'  =>'农业银行','type'=>'bank'],
            ['name'  =>'邮储银行','type'=>'bank'],
            ['name'  =>'建设银行','type'=>'bank'],
            ['name'  =>'招商银行','type'=>'bank'],
            ['name'  =>'中国银行','type'=>'bank'],
            ['name'  =>'交通银行','type'=>'bank'],
            ['name'  =>'浦发银行','type'=>'bank'],
            ['name'  =>'广发银行','type'=>'bank'],
            ['name'  =>'民生银行','type'=>'bank'],
            ['name'  =>'平安银行','type'=>'bank'],
            ['name'  =>'光大银行','type'=>'bank'],
            ['name'  =>'兴业银行','type'=>'bank'],
            ['name'  =>'中信银行','type'=>'bank']
        ]);
    }
}